package response

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

func Error(ctx *gin.Context, args ...Body) {
	var response = Body{
		Code: 500,
		Msg:  "出问题啦！！！",
		Data: nil,
	}

	response.Set(args)

	ctx.JSON(http.StatusOK, response)
}
